package com.unpay.skb.responses;

import com.alibaba.fastjson.JSONObject;

/**
 * 中付结果基类
 */
public class UnpayResponse {

    private Integer status;
    private String msg;
    private String signature;

    public String resultBody(){
        return JSONObject.toJSONString(this);
    }

    public boolean isSuccess(){
        return status!=null&&status==0;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }
}
